package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.StudentInterviewRecordMapper;
import com.ruoyi.teaching.domain.StudentInterviewRecord;
import com.ruoyi.teaching.service.IStudentInterviewRecordService;

/**
 * 学生面试题练习记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
@Service
public class StudentInterviewRecordServiceImpl implements IStudentInterviewRecordService 
{
    @Autowired
    private StudentInterviewRecordMapper studentInterviewRecordMapper;

    /**
     * 查询学生面试题练习记录
     * 
     * @param id 学生面试题练习记录主键
     * @return 学生面试题练习记录
     */
    @Override
    public StudentInterviewRecord selectStudentInterviewRecordById(Long id)
    {
        return studentInterviewRecordMapper.selectStudentInterviewRecordById(id);
    }

    /**
     * 查询学生面试题练习记录列表
     * 
     * @param studentInterviewRecord 学生面试题练习记录
     * @return 学生面试题练习记录
     */
    @Override
    public List<StudentInterviewRecord> selectStudentInterviewRecordList(StudentInterviewRecord studentInterviewRecord)
    {
        return studentInterviewRecordMapper.selectStudentInterviewRecordList(studentInterviewRecord);
    }

    /**
     * 新增学生面试题练习记录
     * 
     * @param studentInterviewRecord 学生面试题练习记录
     * @return 结果
     */
    @Override
    public int insertStudentInterviewRecord(StudentInterviewRecord studentInterviewRecord)
    {
        return studentInterviewRecordMapper.insertStudentInterviewRecord(studentInterviewRecord);
    }

    /**
     * 修改学生面试题练习记录
     * 
     * @param studentInterviewRecord 学生面试题练习记录
     * @return 结果
     */
    @Override
    public int updateStudentInterviewRecord(StudentInterviewRecord studentInterviewRecord)
    {
        return studentInterviewRecordMapper.updateStudentInterviewRecord(studentInterviewRecord);
    }

    /**
     * 批量删除学生面试题练习记录
     * 
     * @param ids 需要删除的学生面试题练习记录主键
     * @return 结果
     */
    @Override
    public int deleteStudentInterviewRecordByIds(Long[] ids)
    {
        return studentInterviewRecordMapper.deleteStudentInterviewRecordByIds(ids);
    }

    /**
     * 删除学生面试题练习记录信息
     * 
     * @param id 学生面试题练习记录主键
     * @return 结果
     */
    @Override
    public int deleteStudentInterviewRecordById(Long id)
    {
        return studentInterviewRecordMapper.deleteStudentInterviewRecordById(id);
    }
}
